QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = URFControl
CONFIG(release, debug|release) {
    DESTDIR = $$PWD/bin/Release
} else {
    DESTDIR = $$PWD/bin/Debug
}

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    control_interface.cpp \
    conview.cpp \
    forceview.cpp \
    hapticdv.cpp \
    jointview.cpp \
    main.cpp \
    mainwindow.cpp \
    posview.cpp \
    ur_rtde/dashboard_client.cpp \
    ur_rtde/dashboard_enums.cpp \
    ur_rtde/robot_state.cpp \
    ur_rtde/robotiq_gripper.cpp \
    ur_rtde/rtde.cpp \
    ur_rtde/rtde_control_interface.cpp \
    ur_rtde/rtde_io_interface.cpp \
#    ur_rtde/rtde_python_bindings.cpp \
    ur_rtde/rtde_receive_interface.cpp \
    ur_rtde/script_client.cpp \
#    urcl/default_log_handler.cpp \
#    urcl/log.cpp \
#    urcl/script_sender.cpp \
#    urcl/tcp_server.cpp \
#    urcl/tcp_socket.cpp \
    urparser.cpp

HEADERS += \
    control_interface.h \
    conview.h \
    forceview.h \
    hapticdv.h \
    jointview.h \
    mainwindow.h \
    posview.h \
    unistd.h \
    ur_rtde/dashboard_client.h \
    ur_rtde/dashboard_enums.h \
    ur_rtde/robot_state.h \
    ur_rtde/robotiq_gripper.h \
    ur_rtde/rtde.h \
    ur_rtde/rtde_control_interface.h \
    ur_rtde/rtde_control_interface_doc.h \
    ur_rtde/rtde_control_script.h \
    ur_rtde/rtde_export.h \
    ur_rtde/rtde_io_interface.h \
    ur_rtde/rtde_io_interface_doc.h \
    ur_rtde/rtde_receive_interface.h \
    ur_rtde/rtde_receive_interface_doc.h \
    ur_rtde/rtde_utility.h \
    ur_rtde/script_client.h \
#    urcl/default_log_handler.h \
#    urcl/log.h \
#    urcl/script_sender.h \
#    urcl/tcp_server.h \
#    urcl/tcp_socket.h \
    urparser.h

FORMS += \
    conview.ui \
    forceview.ui \
    jointview.ui \
    mainwindow.ui \
    posview.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

INCLUDEPATH += $$PWD/ur_rtde $$(BOOST_ROOT) $$PWD/haptic/include
DEPENDPATH += $$PWD/ur_rtde $$(BOOST_ROOT) $$PWD/haptic/include
LIBS += -L$$(BOOST_LIBRARYDIR)
#-L$$PWD/ur_rtde/lib
CONFIG(release, debug|release) {
LIBS += -llibboost_atomic-vc141-mt-x64-1_68 -llibboost_chrono-vc141-mt-x64-1_68 -llibboost_date_time-vc141-mt-x64-1_68 \
-llibboost_program_options-vc141-mt-x64-1_68 \
-llibboost_system-vc141-mt-x64-1_68 \
-llibboost_thread-vc141-mt-x64-1_68
#-lrtde
} else {
LIBS += -llibboost_atomic-vc141-mt-gd-x64-1_68 -llibboost_chrono-vc141-mt-gd-x64-1_68 -llibboost_date_time-vc141-mt-gd-x64-1_68 \
-llibboost_program_options-vc141-mt-gd-x64-1_68 -llibboost_system-vc141-mt-gd-x64-1_68 \
-llibboost_thread-vc141-mt-gd-x64-1_68
#-lrtded
}
LIBS += -L$$PWD/haptic/lib -ldhdms64 -ldrdms64

RESOURCES += \
    res.qrc

